<?php /*a:6:{s:40:"F:\WWW\youni\view\admin\queue\index.html";i:1571210715;s:40:"F:\WWW\youni\view\admin\common\base.html";i:1570370238;s:42:"F:\WWW\youni\view\admin\common\header.html";i:1567752197;s:39:"F:\WWW\youni\view\admin\common\css.html";i:1570602032;s:42:"F:\WWW\youni\view\admin\common\footer.html";i:1567752456;s:38:"F:\WWW\youni\view\admin\common\js.html";i:1570520786;}*/ ?>


    <!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>优你后台</title>

    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->



    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>

<link href="/static/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="/static/admin/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="/static/admin/css/animate.css" rel="stylesheet">
<link href="/static/admin/css/style.css?v=4.1.0" rel="stylesheet">
<link href="/static/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
<link href="/static/admin/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<link href="/static/admin/css/plugins/switchery/switchery.css" rel="stylesheet">
<link href="/static/admin/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">

<link href="/static/admin/css/plugins/fileinput/fileinput.css" rel="stylesheet">
<link href="/static/admin/css/common.css" rel="stylesheet">

<style>
    .table > tbody > tr {
        text-align: center;
    }
    .table tr>th{
        text-align: center;
    }
    .dropdown-menu > .active > a{
        /*background-color:#1ab394;*/
    }
</style>
</head>







<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>基本表单 <small>简单登录表单示例</small></h5>
                <div class="ibox-tools">
                    <a class="collapse-link">
                        <i class="fa fa-chevron-up"></i>
                    </a>
                    <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
                        <i class="fa fa-wrench"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="form_basic.html#">选项1</a>
                        </li>
                        <li><a href="form_basic.html#">选项2</a>
                        </li>
                    </ul>
                    <a class="close-link">
                        <i class="fa fa-times"></i>
                    </a>
                </div>
            </div>
            <div class="ibox-content">
                <div class="row">
                    <div class="col-sm-6 b-r">
                        <h3 class="m-t-none m-b">上传</h3>
                        <form role="form" method="post" enctype="multipart/form-data">
                            <div class="form-group">
                                <input type="file" name="newpic"  class="myfile"/>
                            </div>
                            <div class="form-group">
                                <button class="btn btn-primary" type="submit">保存</button>
                            </div>
                        </form>
                    </div>

                </div>
            </div>
        </div>
    </div>

</div>




    



    <!-- 全局js -->
<script src="/static/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/admin/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/static/admin/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="/static/admin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/static/admin/js/plugins/layer/layer.min.js"></script>
<script src="/static/admin/js/plugins/iCheck/icheck.min.js"></script>
<script src="/static/admin/js/plugins/switchery/switchery.js"></script><!--IOS开关样式-->

<!-- 自定义js -->
<script src="/static/admin/js/hplus.js?v=4.1.0"></script>
<script src="/static/admin/js/contabs.js"></script>
<script src="/static/admin/js/content.js"></script>

<script src="/static/admin/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/static/admin/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/static/admin/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<!-- 第三方插件 -->
<!--<script src="/static/admin/js/plugins/pace/pace.min.js"></script>-->
<script src="/static/admin/js/plugins/fileinput/fileinput.js"></script>
<script src="/static/admin/js/plugins/fileinput/fileinput_locale_zh.js"></script>
<!-- 欢迎信息 -->
<script src="/static/admin/js/welcome.js"></script>


<script src="/static/admin/js/common.js"></script>

<script src="/static/admin/js/ry-ui.js"></script>
<script>
    $(document).ready(function(){
        $(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green"});
        //IOS开关样式配置
        var elem = document.querySelector('.js-switch');
        var switchery = new Switchery(elem, {
            color: '#1AB394'
        });
        var config = {
            '.chosen-select': {},
        }
    });

</script>



<script type="text/javascript">
    $(".myfile").fileinput({
        language: 'zh',
        uploadUrl: "<?php echo url('queue/upload'); ?>",
        showCaption: true,//是否显示被选文件的简介
        showUpload: false,//是否显示上传按钮
        showRemove: false,//是否显示删除按钮
        showClose: false,//是否显示关闭按钮
        showUploadedThumbs:true,
        dropZoneEnabled:false,
        enctype: 'multipart/form-data',
        uploadAsync:true, //false 同步上传，后台用数组接收，true 异步上传，每次上传一个file,会调用多次接口
        previewFileIcon: "<i class=‘glyphicon glyphicon-king‘></i>",
//    layoutTemplates: {
////      actionUpload: '',//就是让文件上传中的文件去除上传按钮
////        actionDelete: ''//去除删除按钮
//    },
        browseClass: 'btn btn-primary',
        maxFileCount: 10,
        minFileCount : 1,
    }) .on('filebatchselected', function(event, files) {
        // 选中事件
        $(event.target).fileinput('upload')
    }).on('filebatchuploadsuccess',function(res) {
        console.log(res);
    });
    //异步上传返回结果处理
    $('.myfile').on('fileerror', function(event, data, msg) {
        console.log("fileerror");
        console.log(data);
    });
    //异步上传返回结果处理
    $(".myfile").on("fileuploaded", function(event, data, previewId, index) {
        console.log("fileuploaded");
        var ref = $(this).attr("data-ref");
        console.log(ref);
        $("input[name='" + ref + "']").val(data.response.data);

        $('#' + previewId).attr('myOperationData', data.response.data );
        $('#' + previewId).attr('title', data.response.data );

    });

    //上传前
    $('.myfile').on('filepreupload', function(event, data, previewId, index) {
        console.log("filepreupload");
    });

</script>
